<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Usuarios
 *
 * @author 7558
 */
require_once './gestorBBDD.php';

class Usuario {
    //put your code here
    private $email;
    private $password;
    private $nombre;
    private $apellidos;
    private $dni;
    private $tfno;
    private $direccion;
    private $cp;
    private $poblacion;
    private $provincia;
    private $pais;
    function Usuario($email, $password, $nombre, $apellidos, $dni, $tfno, $direccion, $cp, $poblacion, $provincia, $pais) {
        $this->email = $email;
        $this->password = $password;
        $this->nombre = $nombre;
        $this->apellidos = $apellidos;
        $this->dni = $dni;
        $this->tfno = $tfno;
        $this->direccion = $direccion;
        $this->cp = $cp;
        $this->poblacion = $poblacion;
        $this->provincia = $provincia;
        $this->pais = $pais;
    }

    
    public function getEmail() {
        return $this->email;
    }

    public function setEmail($email) {
        $this->email = $email;
    }

    public function getPassword() {
        return $this->password;
    }

    public function setPassword($password) {
        $this->password = $password;
    }

    public function getNombre() {
        return $this->nombre;
    }

    public function setNombre($nombre) {
        $this->nombre = $nombre;
    }

    public function getApellidos() {
        return $this->apellidos;
    }

    public function setApellidos($apellidos) {
        $this->apellidos = $apellidos;
    }

    public function getDni() {
        return $this->dni;
    }

    public function setDni($dni) {
        $this->dni = $dni;
    }

    public function getTfno() {
        return $this->tfno;
    }

    public function setTfno($tfno) {
        $this->tfno = $tfno;
    }

    public function getDireccion() {
        return $this->direccion;
    }

    public function setDireccion($direccion) {
        $this->direccion = $direccion;
    }

    public function getCp() {
        return $this->cp;
    }

    public function setCp($cp) {
        $this->cp = $cp;
    }

    public function getPoblacion() {
        return $this->poblacion;
    }

    public function setPoblacion($poblacion) {
        $this->poblacion = $poblacion;
    }

    public function getProvincia() {
        return $this->provincia;
    }

    public function setProvincia($provincia) {
        $this->provincia = $provincia;
    }

    public function getPais() {
        return $this->pais;
    }

    public function setPais($pais) {
        $this->pais = $pais;
    }
    
    public function crear(){
        $gBBDD = new GestorBBDD;
        $retorno = $gBBDD->crearUsuario($this);
        return $retorno;
        }
}
?>
